home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_10_08
/
1008131a
< prev
next >
Wrap
Text File
|
1992-06-07
|
839b
|
30 lines
void main(int argc, char *argv[])
{
int count;
int trace, debug, some_count;
printf("\n This program was executed as %s \n", argv[0]);
for (count = 1; count < argc; count++)
{
if (argv[count][0] == '-' || argv[count][0] == '/')
{
switch(argv[count][1])
{
case 'd':
debug = TRUE;
break;
case 't':
trace = TRUE;
break;
case 'n':
sscanf(&argv[count][2],"%d",&some_count);
/* Tests for any other character options */
}
}
else
strcpy(filename,argv[count]);
}
}